package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.ZyPlanRecordEntity;
import org.jeecgframework.web.system.pojo.base.zyPlanStateProcessBean;

public interface ZyPlanRecordServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(ZyPlanRecordEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(ZyPlanRecordEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(ZyPlanRecordEntity t);

	/**@author xiul
	 * 2016-4-25 下午7:22:53
	 * Description 根据巡检计划ID 查询 进程
	 * @param id 巡检计划ID
	 * @return
	 */
	public List<zyPlanStateProcessBean> queryPlanStateProcess(String id);
	
	/**
	 * 添加审批记录
	 * @param busId   业务id
	 * @param procInsId 实例Id
	 * @param taskId 节点Id
	 * @param planState 
	 * @param userName 操作人
	 * @param remark 备注
	 * @return
	 */
	public ZyPlanRecordEntity savePlanRecord(String busId,String procInsId,String taskId,String planState,String userName,String remark);
}
